{% extends "base.html" %}

{% block content %}
    <script type="text/javascript">
        //<script> verður að vera inni í einhverri block
        //Yfirskrifar width skilgreiningar í style.css
        $(document).ready(function(){
            $('#baseLeftNav').width("20%");
            $('#baseContent').width("60%");
            $('#baseRightNav').width("20%");
        });
    </script>
    
    {% if user.is_authenticated %}
        <p>Welcome,nice to see you her {{ user.username }}. Thanks for logging in.</p>
        {% if message %}
            {{message}}
        {% endif %}
    {% else %}
        <p>Welcome, new user. Please log in.</p>
    {% endif %}


{% endblock %}
